<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
class Tableproducts extends JTable
{    
var $id = null;
var $name = null;
var $alias = null;
var $agent_id = null;
var $agent = null;
var $ref = null;
var $type = null;
var $parent = null;
var $cid = null;
var $lid = null;
var $sid = null;
var $cyid = null;
var $postcode = null;
var $adress = null;
var $description = null;
var $description2 = null;
var $price = null;
var $published = null;
var $image1 = null;
var $image2 = null;
var $image3 = null;
var $image4 = null;
var $image5 = null;
var $image6 = null;
var $image7 = null;
var $image8 = null;
var $image9 = null;
var $image10 = null;
var $image11 = null;
var $image12 = null;
var $image13 = null;
var $image14 = null;
var $image15 = null;
var $image16 = null;
var $image17 = null;
var $image18 = null;
var $image19 = null;
var $image20 = null;
var $image21 = null;
var $image22 = null;
var $image23 = null;
var $image24 = null;
var $image1desc = null;
var $image2desc = null;
var $image3desc = null;
var $image4desc = null;
var $image5desc = null;
var $image6desc = null;
var $image7desc = null;
var $image8desc = null;
var $image9desc = null;
var $image10desc = null;
var $image11desc = null;
var $image12desc = null;
var $image13desc = null;
var $image14desc = null;
var $image15desc = null;
var $image16desc = null;
var $image17desc = null;
var $image18desc = null;
var $image19desc = null;
  var $image20desc = null;
  var $image21desc = null;
  var $image22desc = null;
  var $image23desc = null;
  var $image24desc = null;
  var $panoramic = null;
  var $lat = null;
  var $lng = null;
  var $available = null;
  var $featured = null;
  var $years = null;
  var $bedrooms = null;
  var $bathrooms = null;
  var $garage = null;
  var $area = null;
  var $covered_area = null;
  var $hits = null;
  var $listdate = null;
  var $checked_out = null;
  var $checked_out_time = null;
  var $extra1 = null;
  var $extra2 = null;
  var $extra3 = null;
  var $extra4 = null;
  var $extra5 = null;
  var $extra6 = null;
  var $extra7 = null;
  var $extra8 = null;
  var $extra9 = null;
  var $extra10 = null;
  var $extra11 = null;
  var $extra12 = null;
  var $extra13 = null;
  var $extra14 = null;
  var $extra15 = null;
  var $extra16 = null;
  var $extra17 = null;
  var $extra18 = null;
  var $extra19 = null;
  var $extra20 = null;
  var $video = null;

   function __construct(&$db)
  {
    parent::__construct( '#__properties_products', 'id', $db );
  }
  function check()
	{		
		if(empty($this->alias)) {
			$this->alias = $this->name;
		}
		$this->alias = JFilterOutput::stringURLSafe($this->alias);
		if(trim(str_replace('-','',$this->alias)) == '') {
			$datenow =& JFactory::getDate();
			$this->alias = $datenow->toFormat("%Y-%m-%d-%H-%M-%S");
		}
		return true;
	}
}
?>